﻿/*****************************************************************
 * Copyright 2010 Joel Parrish
 *****************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NuiBlue.Bluetooth
{
    public class BluetoothEventArgs : EventArgs
    {
        public LinkedList<string> folders;
        public LinkedList<string> files;
        private string filePath;
        private string userId;
        private string userName;
        private string fileName;

        /// <summary>
        /// Object that holds that data received after an image transfer.
        /// </summary>
        /// <param name="userId">user id</param>
        /// <param name="filePath">path of image received</param>
        /// <param name="fileName">name of image received</param>
        public BluetoothEventArgs(string userId, string filePath, string fileName)
        {
            this.userId = userId;
            this.filePath = filePath;
            this.fileName = fileName;
            userName = "";
        }

        public void setFolders(string[] folders)
        {
            this.folders = new LinkedList<string>(folders);
        }

        public void setFiles(string[] files)
        {
            this.files = new LinkedList<string>(files);
        }

        /// <summary>
        /// Path to image file
        /// </summary>
        public string FilePath
        {
            get
            {
                return filePath;
            }
        }

        /// <summary>
        /// UserId belonging to image
        /// </summary>
        public string UserId
        {
            get
            {
                return userId;
            }
        }


        /// <summary>
        /// Name of downloaded file
        /// </summary>
        public string FileName
        {
            get
            {
                return fileName;
            }
        }

        /// <summary>
        /// Name of user
        /// </summary>
        public string Name
        {
            get
            {
                return userName;
            }
            set
            {
                userName = value;
            }
        }
    }
}
